<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  function main() {
    try {
      setTimeout(() => {
        throw new Error('async error')
      }, 1000)
    } catch(e) {
      console.log(e, 'err');
      console.log('continue...')
    }
  }

  main();
</script>
</body>
</html>